package com.coco.bargain.feign;


import com.coco.bargain.pojo.TbGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "coco-goods")
@RequestMapping("/goods")
public interface GoodsFeignService {

    @GetMapping("/findSkuBySpuIdAndSkuId/{spuId}/{skuId}")
    public Object findSkuBySpuIdAndSkuId(@PathVariable("spuId") Long spuId, @PathVariable("skuId") Long skuId);

    @GetMapping("/findOneById/{id}")
    public TbGoods findOneById(@PathVariable("id") String id);

}
